package com.dkd.testClass.domain;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 班级表
 * </p>
 *
 * @author zwy
 * @since 2025-06-10
 */
@ApiModel(value = "TestClass对象", description = "班级表")
public class TestClass implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "班级id")
    private Integer id;

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "年级(如：一年级、二年级")
    private String grade;

    @ApiModelProperty(value = "关联学生表")
    private List<TestStudent> studentList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public List<TestStudent> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<TestStudent> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "TestClass{" +
                "id=" + id +
                ", className=" + className +
                ", grade=" + grade +
                "}";
    }
}
